package com.youthHostel.pojo;

import java.util.Date;

public class user {
    private Integer u_id;

    private String u_name;

    private String u_pass;

    private String u_realname;

    private String u_sex;

    private Integer role_id;

    private Date u_create_time;

    private Byte u_state;
    
    private role role;
    public role getRole() {
		return role;
	}

	public void setRole(role role) {
		this.role = role;
	}

	public Integer getU_id() {
        return u_id;
    }

    public void setU_id(Integer u_id) {
        this.u_id = u_id;
    }

    public String getU_name() {
        return u_name;
    }

    public void setU_name(String u_name) {
        this.u_name = u_name == null ? null : u_name.trim();
    }

    public String getU_pass() {
        return u_pass;
    }

    public void setU_pass(String u_pass) {
        this.u_pass = u_pass == null ? null : u_pass.trim();
    }

    public String getU_realname() {
        return u_realname;
    }

    public void setU_realname(String u_realname) {
        this.u_realname = u_realname == null ? null : u_realname.trim();
    }

    public String getU_sex() {
        return u_sex;
    }

    public void setU_sex(String u_sex) {
        this.u_sex = u_sex == null ? null : u_sex.trim();
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public Date getU_create_time() {
        return u_create_time;
    }

    public void setU_create_time(Date u_create_time) {
        this.u_create_time = u_create_time;
    }

    public Byte getU_state() {
        return u_state;
    }

    public void setU_state(Byte u_state) {
        this.u_state = u_state;
    }

	@Override
	public String toString() {
		return "user [u_id=" + u_id + ", u_name=" + u_name + ", u_pass=" + u_pass + ", u_realname=" + u_realname
				+ ", u_sex=" + u_sex + ", role_id=" + role_id + ", u_create_time=" + u_create_time + ", u_state="
				+ u_state + "]";
	}
    
}